import request from "@/utils/request";

export const uploadPicAPI = (data) => {
  return request({
    url: "/uploadPic",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data,
  });
};

export const regisAPI = (data) => {
  return request({
    url: "/regis",
    method: "post",
    data,
    headers: {
      "Content-Type": "application/json",
    },
  });
};

export const getInfoAPI = () => {
  return request({
    url: "/getInfo",
    method: "get",
  });
};

export const editAPI = (data) => {
  return request({
    url: "/edit",
    method: "post",
    data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
};
